package com.jkoss.wine.shop.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;

import cn.afterturn.easypoi.excel.annotation.Excel;


/**
 * 
 * 
 * @Author Supreme
 * @Version 1.0, 2018-09-29
 * @See
 * @Since com.jkoss.wine.shop.entity
 * @Description: TODO
 */
@TableName("merchant_common_type")
public class MerchantCommonType extends Model<MerchantCommonType> {

    private static final long serialVersionUID = 1L;

    @TableId("common_type_id")
    private String commonTypeId;
    /**
     * 类型 0容量单位 (如ml ,l等) 1资源分组名称
     */
    @Excel(name = "分类", orderNum = "0", replace = { "容量单位_0", "资源分组名称_1"}, width = 30)
    @TableField("type_class")
    private Integer typeClass;
    /**
     * 类型名称
     */
    @Excel(name = "名称", orderNum = "1", width = 30)
    @TableField("type_name")
    private String typeName;
    @TableField("add_time")
    private Date addTime;
    @TableField("operator")
    private String operator;
    @TableField("del")
    private Integer del;


    public String getCommonTypeId() {
        return commonTypeId;
    }

    public void setCommonTypeId(String commonTypeId) {
        this.commonTypeId = commonTypeId;
    }

    public Integer getTypeClass() {
        return typeClass;
    }

    public void setTypeClass(Integer typeClass) {
        this.typeClass = typeClass;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public Date getAddTime() {
        return addTime;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    public String getOperator() {
        return operator;
    }

    public void setOperator(String operator) {
        this.operator = operator;
    }

    public Integer getDel() {
        return del;
    }

    public void setDel(Integer del) {
        this.del = del;
    }

    @Override
    protected Serializable pkVal() {
        return this.commonTypeId;
    }

    @Override
    public String toString() {
        return "MerchantCommonType{" +
        ", commonTypeId=" + commonTypeId +
        ", typeClass=" + typeClass +
        ", typeName=" + typeName +
        ", addTime=" + addTime +
        ", operator=" + operator +
        ", del=" + del +
        "}";
    }
}
